package com.tz.se.day01;

import java.util.Scanner;

public class ZhiShu {
public static void main (String[] args) {
	
	for (int i = 2; i < 1001; i++) {
		Boolean a =true;
		
		for (int j = 2;  j <i; j++) {
			if(i%j==0) {
			    a=false;
				break;
			}
			
		}
		if (a) {
			System.out.println(i);
		}
	}
}
}
